#ifndef LIST_H
#define LIST_H
struct list{
	struct list* next;
	char c;
	int weight;
};

struct list* find(struct list* l,char c);

int listlen(struct list *l);

struct list * reverse_list(struct list * head);

struct list * sort_list(struct list* head);

void swap_list(struct list* a ,struct list* b);

void printList(struct list * head);

#endif